<?php

/**
 * Created by PhpStorm.
 * User: evan
 * Date: 16/9/25
 * Time: 下午3:18
 */
class Center extends MY_Api_Controller
{
    /**
     * 我的呼声
     */
    public function my()
    {
        $uid   = $this->uid;
        $page  = (int)$this->input->get_post('page');
        $limit = (int)$this->input->get_post('limit');


        $this->load->service('voice/service_voice_center');
        $data = $this->service_voice_center->my($uid, $page, $limit);


        foreach ($data['data'] as $k => $v)
        {
            unset($data['data'][$k]['ip']);
        }


        $this->json_output($data['data'], $data['status']);
    }
}